package org.yds.quality.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Set;

/**
 * @author 10467795
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class GlassRecipeCodeDetailVO {

    private Boolean trigger;

    private Set<Detail> details;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class Detail {
        // Tdi
        private String dftCategory;
        private String code;
        private List<Item> values;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Item {

        // lot/glass
        private String type;

        private Object limit;

        private Object value;

        private Set<String> glassId;
    }
}
